
OUTPUT=ml20dll.dll
OBJS=decoder.o remote.o stream_file.o threads.o udp.o vc.o  vstream.o

CFLAGS=-O2 -Wall
LDFLAGS=-lvfw32 -shared

threads.o-CFLAGS=-fno-unit-at-a-time

all: $(OUTPUT)

$(OUTPUT): $(OBJS)
	$(CC) -o $@ $(OBJS) $(LDFLAGS)

%.o: %.c
	$(CC) $(CFLAGS) $($@-CFLAGS) -c -o $@ $<

clean:
	rm -f *.o $(OUTPUT)
